﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

/// <summary>
///RecordFactory 的摘要说明
/// </summary>
public class RecordFactory
{
	public RecordFactory()
	{
		//
		//TODO: 在此处添加构造函数逻辑
		//
	}
    public SingleRecord CreatRecord(DataRow dr, string type)
    {
        switch (type)
        {
            case "SH":
                return new SuanhuaRecord(dr);
            case "YL":
                return new YalieRecord(dr);
            default:
                return null;
        }
    }
}